<!--
  author 袁野
  contcat 15164619605
 -->
<template>
  <el-container style="height: 100vh;">
    <el-header class="header-style" style=" color: #fff;">
      <p>物料管理系统</p>
    </el-header>

    <el-container>
      <!-- 左侧菜单栏 -->
      <!-- <el-aside width="200px" style="background-color: #f4f4f4;">
        <el-menu>
          <el-menu-item index="1" to="/">物料管理</el-menu-item>
        </el-menu>
      </el-aside> -->

      <el-main style="padding: 5px;margin-top: 10px;">
        <router-view></router-view>
      </el-main>
    </el-container>
    <!-- Footer: 页脚 -->
    <el-footer style="text-align: center;  padding: 10px;">
      <span>© 2025 物料管理系统 | All Rights Reserved</span>
    </el-footer>
  </el-container>
</template>
<script>
export default {
  name: 'App',
};
</script>
<style scoped>
/* 设置整体字体和基本样式 */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
}

/* 页头样式 */
.header-actions {
  display: flex;
  gap: 15px;
}

.header-style{
    font-size: 22px;
    font-weight: 500;
    background: linear-gradient(135deg, #409EFF 0%, #76b8fa 100%);
    height: 60px !important;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 流光动画效果 */
.header-style ::after {
  content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 40%;
    /* 缩小光带宽度 */
    height: 200%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.15) 45%,
        /* 降低高光强度 */
        rgba(255, 255, 255, 0) 80%);
    animation: flowLight 8s cubic-bezier(0.4, 0, 0.6, 1) infinite, fadeInOut 8s ease infinite;
    /* 新增淡入淡出 */
    transform: rotate(15deg);
    filter: blur(8px);
    /* 增加模糊效果 */
}

@keyframes flowLight {
  0% {
    transform: translateX(-100%) rotate(15deg);
  }

  100% {
    transform: translateX(200%) rotate(15deg);
  }
}

@keyframes fadeInOut {

  /* 新增透明度变化 */
  0%,
  100%{
    opacity: 0;
  }

  20%,
  80%{
    opacity: 0.6;
  }
}

/* 标题文字优化 */
.title-text {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 8px rgba(255, 255, 255, 0.1);
  /* 增加光晕 */
  animation: titleFloat 4s ease-in-out infinite;
}

@keyframes titleFloat {

  /* 更柔和的浮动 */
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.02);
  }
}

.header-actions .el-button {
  margin-left: 15px;
  padding: 8px 20px;
  font-size: 14px;
}

/* 标题样式 */
.title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

/* 主体区域 */
.el-main {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
}

/* 页脚样式 */
.el-footer {
  font-size: 14px;
  color: #888;
}

/* 响应式设计：小屏幕时菜单按钮收缩 */
@media (max-width: 768px) {
  .header-actions {
    display: none;
  }

  .title {
    font-size: 18px;
  }
}
</style>